Passed
Push — develop ( 9e3bd7...6405a0 )
by Endre
03:46
created

ApplicationAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A openGithubWindow 0 3 1
1
import {IAdapter} from './View/Application';
2
3
export default class ApplicationAction {
4
  get adapter(): IAdapter {
5 1
    return {
6
      onGithubClick: this.openGithubWindow.bind(this)
7
    }
8
  }
9
10
  protected openGithubWindow(): void {
11 1
    window.open('https://github.com/enbock/Time-Tracker/', '_blank');
12
  }
13
}
14